<%@page import="javax.jdo.JDOHelper"%>
<%@page import="java.util.List"%>
<%@page import="javax.jdo.Query"%>
<%@page import="javax.jdo.PersistenceManager"%>
<%@page contentType="text/html;charset=UTF-8" language="java"%>
<%
//String link = request.getHeader("referer");
//if(link != null){
//	String name = link.replaceAll("http://www.showsiteinfo.appspot.com/sites/","").replaceAll("http://www.showsiteinfo.appspot.com/search?name","");
	
///	PersistenceManager psm = TwoNamePersistenceManager.get().getPersistenceManager();
//	Query query = psm.newQuery(Demo.class);
//	query.setFilter("name=='"+link+"'");
//	List<Demo> check = (List<Demo>)query.execute();
//	if(check.size()<=0 && link != null)
//	{
//		Query query1 = psm.newQuery(Domain.class);
//		query1.setFilter("name=='"+name+"'");
//		List<Domain> domain = (List<Domain>)query1.execute();
//		if(domain.size() > 0 && domain.get(0).getAlexaLocalRank() != -1 && domain.get(0).getAlexaLocalRank() != 3 && domain.get(0).getAlexaLocalRank() != 9)
//		{
//			domain.get(0).setAlexaLocalRank(-2);
//			psm=JDOHelper.getPersistenceManager(domain.get(0));
//			psm.currentTransaction().begin();
//			psm.makePersistent(domain.get(0));
///			psm.currentTransaction().commit();
//		}
		
//		Demo demo = new Demo();
//		demo.setName(link);
//		psm.makePersistent(demo);
//	}
//}
	%>
<a href="http://hatforrent.com/"><img src="/adv.jsp?image=2.png"/></a>